#include <bits/stdc++.h>
using namespace std;

struct X {
    friend void g(X &);
    private:
        int a = 1;
};

void g(X &x){
    x.a = 100;
    cout << x.a << endl;
}

int main(){
    X a;
    g(a);
    return 0;
}
